package com.cwl.pattern.单例模式;

/**
 * @program: simple_tools
 * @description: 单例模式-饿汉式
 * @author: ChenWenLong
 * @create: 2019-06-21 17:51
 **/
public class HungrySingleton {
    private static final HungrySingleton instance=new HungrySingleton();
    private HungrySingleton(){}
    public static HungrySingleton getInstance()
    {
        return instance;
    }
}
